﻿using FirstFloor.ModernUI.Presentation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SelElectCalcModernUI.ViewModel.Home
{

    public class PowerSeller : NotifyPropertyChanged
    {
        double price;
        double power;
        string name;
        int times;
        
        public double Price
        {
            get
            {
                return price;
            }

            set
            {
                price = value;
                OnPropertyChanged("Price");
            }
        }

        public double Power
        {
            get
            {
                return power;
            }

            set
            {
                power = value;
                OnPropertyChanged("Power");
            }
        }
        public string Name
        {
            get
            {
                return name;
            }

            set
            {
                name = value;
                OnPropertyChanged("Name");
            }
        }

        public int Times
        {
            get
            {
                return times;
            }

            set
            {
                times = value;
                OnPropertyChanged("Times");
            }
        }
        
        public PowerSeller Copy()
        {
            return new PowerSeller()
            {
                power = this.power,
                price = this.price,
                name = this.name,
                times = this.times
            };
        }
    }
}
